package com.sishu.websocket4.service;

import cn.dev33.satoken.util.SaResult;
import com.sishu.websocket4.pojo.TransactionRecord;
import com.sishu.websocket4.pojo.User;

import java.sql.Timestamp;
import java.util.List;

public interface Userservice {


//    String transactionmoney(Transaction transaction);

//
//    User registeruser(String username, String password);
//
//    String login(String username, String password);

    User getUserByName(String username);

    User getUserByUserId(String userId);
//
//    User getUserById(Long id);

    SaResult register(String username, String password, String uid,String type);

    SaResult insertgroups(List<User> groupmember, String groupid);

    void insertusers(User user);


    SaResult insetAssets(String groupId, String userId);

    String selectusername(String userId);

    boolean isuserExists(String userId);

    SaResult buygroud(String userId,String siteId,String groupid);

    void inserttranscationrecored(String playuserId, String geter_user_id, int amount, String transactionType, Timestamp transactionDate,String siteId,String groupId,String userId);

    SaResult transaction(String payeruserId,String geteruserId, int amount,String groupid);

   SaResult saleground(String userId,String siteid,String groupid);

    SaResult selectuser(User user);

    SaResult answerjia(String userId,int amount,String groupid);

    SaResult answerkou(String userId,int amount,String groupid);

    SaResult selcetgroupasset(String groupid);

    SaResult card(TransactionRecord record);
     // boolean purchaseSite(String userId, String siteName);
}
